package unilearn.domain;

import java.sql.Timestamp;

/**
 * @author Ben Morall, 4158768
 * @version 0.1, 24 April 2008, inital creation, blm
 * @version 0.2, 25 April 2008, Added File Field, blm
 * @version 0.3, 30 April 2008, Added submissionID to Constructor, blm
 * @version 0.4, 07 May 2008, assign default values to instances
 * @version 0.5, 07 May 2008, add assign_to function
 */
public class Submission
{
	private long submissionID = -1;
	private long assignmentID = -1;
	private Timestamp dateSubmitted = null;
	private String studentNumber = null;
	private long fileID = -1;
	private String staffID = null;

	public Submission()
	{
	}

	/** Creates a new instance of Submission */
	public Submission(long submissionID)
	{
		this.submissionID = submissionID;
	}

	public long getAssignmentID()
	{
		return assignmentID;
	}

	public Timestamp getDateSubmitted()
	{
		return dateSubmitted;
	}

	public long getFileID()
	{
		return fileID;
	}

	public String getStudentNumber()
	{
		return studentNumber;
	}

	public long getSubmissionID()
	{
		return submissionID;
	}

	public String getAssignTo()
	{
		return staffID;
	}

	public void setAssignmentID(long assignmentID)
	{
		this.assignmentID = assignmentID;
	}

	public void setDateSubmitted(Timestamp dateSubmitted)
	{
		this.dateSubmitted = dateSubmitted;
	}

	public void setStudentNumber(String studentNumber)
	{
		this.studentNumber = studentNumber;
	}

	public void setFileID(long fileID)
	{
		this.fileID = fileID;
	}

	public void setSubmissionID(long submissionID)
	{
		this.submissionID = submissionID;
	}

	@Deprecated
	public void setStaffID(String staffID)
	{
		this.staffID = staffID;
	}

	@Deprecated
	public String getStaffID()
	{
		return this.staffID;
	}

}
